package com.example.messagemodule.adapter;

import android.graphics.Color;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.messagemodule.R;

import java.util.List;

public class StopDrugAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public StopDrugAdapter(@Nullable List<String> data) {
        super(R.layout.item_attention, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {

//        android:textColor="#FF8500"
//        android:background="@drawable/item_attention_bg"
//
        helper.setTextColor(R.id.item_attentionList, Color.parseColor("#145CF6"));
        helper.setBackgroundRes(R.id.item_attentionList,R.drawable.item_stopdrug_bg);
        helper.setText(R.id.item_attentionList,item);

    }
}
